﻿namespace ctolua.Models
{
    /// <summary>
    /// 雾
    /// </summary>
    public class MFog
    {
        /// <summary>
        /// 雾实体
        /// </summary>
        public Fog fog { get; set; }
        /// <summary>
        /// 雾ID
        /// </summary>
        public int res_id { get; set; }
        public MFog(int res_id)
        {
            this.fog = game_api.get_fog_res_by_res_id(res_id);
            this.res_id = res_id;
        }
        /// <summary>
        /// 修改雾效属性
        /// </summary>
        /// <param name="op_flag ">  默认参数   </param>
        /// <param name="yaw ">  朝向   0</param>
        /// <param name="pos_x ">  位置x   0</param>
        /// <param name="pos_y ">  位置y   0</param>
        /// <param name="pos_z ">  位置z   0</param>
        /// <param name="scale_x ">  缩放x   0</param>
        /// <param name="scale_y ">  缩放y   0</param>
        /// <param name="scale_z ">  缩放z   0</param>
        /// <param name="color_r ">  颜色r   0</param>
        /// <param name="color_g ">  颜色g   0</param>
        /// <param name="color_b ">  颜色b   0</param>
        /// <param name="density ">  浓度   0</param>
        /// <param name="flow_speed ">  流速   0</param>
        public void set_fog_attr(Fog fog, int? op_flag, double? yaw, double? pos_x, double? pos_y, double? pos_z, double? scale_x, double? scale_y, double? scale_z, double? color_r, double? color_g, double? color_b, double? density, double? flow_speed) => game_api.set_fog_attr(this.fog, op_flag, yaw, pos_x, pos_y, pos_z, scale_x, scale_y, scale_z, color_r, color_g, color_b, density, flow_speed);

    }
}
